import request from '@/utils/request'

// 查询SN盘点任务列表
export function listForStatus(query) {
  return request({
    url: '/mobile/wm/sntaking/listForStatus',
    method: 'get',
    params: query
  })
}

// 查询SN盘点明细列表（支持分页和状态过滤）
export function getDetailLines(query) {
  return request({
    url: '/mobile/wm/sntaking/getDetail',
    method: 'get',
    params: query
  })
}

// 确认SN盘点明细
export function confirmDetail(data) {
  return request({
    url: '/mobile/wm/sntaking/confirmDetail',
    method: 'post',
    data: data
  })
}

// 添加SN未找到记录
export function addNotFoundDetail(data) {
  return request({
    url: '/mobile/wm/sntaking/addNotFoundDetail',
    method: 'post',
    data: data
  })
}

// 统计各状态的数量
export function countStatus(query) {
  return request({
    url: '/mobile/wm/sntaking/countStatus',
    method: 'get',
    params: query
  })
}